//
//  UIWindow+TouchEvent.m
//  03_UIResponder
//
//  Created by dllo on 16/7/18.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "UIWindow+TouchEvent.h"

@implementation UIWindow (TouchEvent)
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    // 不写super 就会在这一层断裂
    [super touchesBegan:touches withEvent:event];
    // 检测 硬件检测到(触摸操作)将消息交给UIApplication ->window->viewController->view->检测所有子视图
    // 触发 反过来
    NSLog(@"\n%s------%@",__FUNCTION__,NSStringFromClass([self class]));
}
@end
